home *** CD-ROM | disk | FTP | other *** search
- (*
- ******************************* DOCZ Header **********************************
- .MODULE cmdline
- .LIBRARY lib
- .TYPE function
- .APPLICATION system
- .SYSTEM msdos
- .AUTHOR Software Toolz
- .LANGUAGE Pascal
- .DESCRIPTION
- Get the MSDOS command line
- .ARGUMENTS
- function cmdline: string128;
- .NARRATIVE
- The cmdline function returns the MSDOS command line that was passed to the
- program.
- .RETURNS
- The command line as a 128 character string
- .ENDOC END DOCUMENTATION
- ******************************************************************************
- *)
- type
- string128 = string[128];
-
- function cmdline: string128;
- { ***************************************************************************
- get command from command line
- ***************************************************************************
- }
- var
- st : string128;
- buff : string128 absolute cseg:$0080;
-
- begin { cmdline }
-
- st := buff;
- if length (st) > 0 then delete (st,1,1); { first character is a space }
- cmdline:=st;
-
- end; { cmdline }
-
- { ***************************************************************************
- end CMDLINE.PAS
- ***************************************************************************
- }
-